package cn.wolfcode.ssm.service;

import cn.wolfcode.ssm.domain.SystemDictionaryItem;
import cn.wolfcode.ssm.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ISystemDictionaryItemService {
    void save(SystemDictionaryItem systemDictionaryItem);
    void delete(Long id);
    void update(SystemDictionaryItem systemDictionaryItem);
    SystemDictionaryItem get(Long id);
    List<SystemDictionaryItem> listAll();
    // 分页查询的方法
    PageInfo<SystemDictionaryItem> query(QueryObject qo);

    // 判断用户是否有输入Sequence  没有的话拿到表中Sequence的最大值
    Integer selectMaxSequence(Long ParentId);


    // 根据字典表中的sn查询字典明细表的中的title和id
    List<SystemDictionaryItem> selectParenSn(String sn);
}
